package com.ofwiki.demo.web;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ofwiki.demo.model.JobLogs;
import com.ofwiki.demo.service.JobLogsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 定时任务执行日志(JobLogs)Controller
 *
 * @author huang.js
 * @version 1.0
 * @date 2023-03-18
 */

@Api(tags = "定时任务执行日志")
@RestController
@RequestMapping("/v1/tb_job_logs")
@Validated
public class JobLogsController{
    @Autowired
    private JobLogsService jobLogsService;
    
    @ApiOperation(value = "1.列表查询定时任务执行日志")
    @GetMapping("list")
    public List<JobLogs> list(JobLogs req) {
        QueryWrapper<JobLogs> query = new QueryWrapper<>(req);
        return jobLogsService.list(query);
    }

}

